package com.lpf.beans;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import lombok.Data;

import java.io.Serializable;

@Data
public class Employee extends Model<Employee> {

    private Integer id;
    private String lastName;
    private String email;
    private Integer gender;
    private Integer age;

    @TableField(exist=false)
    private Double salary ;

    /**
     * 功能描述：指定当前实体类的主键属性，
     * 即：指定当前类中是通过哪个属性来描述属性的
     *
     * @author  lpf
     * @date    2019-05-22 19:56:01
     * @return  java.io.Serializable
     */
    @Override
    protected Serializable pkVal() {
        return id;
    }
}